/* 登录页面容器 */
.login-container {
  min-height: 100vh;
  padding: 0px 30px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 背景装饰图标 */
.background-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.bg-icon {
  position: absolute;
  color: rgba(200, 220, 240, 0.3);
  font-size: 2rem;
}

.bg-icon.cloud {
  top: 15%;
  left: 10%;
  font-size: 2.5rem;
}

.bg-icon.camera {
  top: 25%;
  right: 15%;
  font-size: 2rem;
}

.bg-icon.plus {
  top: 45%;
  left: 8%;
  font-size: 1.8rem;
}

.bg-icon.truck {
  top: 60%;
  right: 12%;
  font-size: 2.2rem;
}

/* 主要内容区域 */
.main-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

/* 标题区域 */
.title-section {
  margin-bottom: 2.5rem;
  text-align: left;
}

.main-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.subtitle {
  font-size: 1rem;
  color: #000000;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* 登录方式切换标签 */
.login-tabs {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  background: transparent;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: #999999;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab.active {
  color: #1677ff;
  font-weight: 500;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  background: #1677ff;
  border-radius: 1px;
}

.tab-divider {
  width: 1px;
  height: 1.5rem;
  background: #e5e5e5;
  margin: 0 1rem;
}

/* 登录表单 */
.login-form {
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

/* 输入框样式 */
.phone-input,
.verification-input,
.password-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.3s ease;
}

.phone-input:focus,
.verification-input:focus,
.password-input:focus {
  outline: none;
  border-bottom-color: #1677ff;
}

.phone-input::placeholder,
.verification-input::placeholder,
.password-input::placeholder {
  color: #999999;
}

/* 验证码输入组 */
.verification-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.verification-input {
  flex: 1;
}

.get-code-btn {
  color: #1677ff;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.get-code-btn:hover:not(:disabled) {
  color: #0958d9;
}

.get-code-btn:disabled {
  color: #999999;
  cursor: not-allowed;
}

/* 验证码登录提示 */
.verification-hint {
  font-size: 0.85rem;
  color: #999999;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.4;
}

/* 登录按钮 */
.login-btn {
  width: 100%;
  height: 3rem;
  background: #1677ff;
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 1.5rem;
}

.login-btn:hover {
  background: #0958d9;
}

/* 码云登录 */
.wechat-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #666666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.wechat-login:hover {
  color: #333333;
}

.wechat-icon {
  font-size: 1.1rem;
  color: #c71d23;
  width: 40px;
}

/* 协议同意区域 */
.agreement-section {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333333;
}

.agreement-checkbox {
  margin-top: 0.1rem;
}

.agreement-text {
  flex: 1;
}

.agreement-link {
  color: #1677ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.agreement-link:hover {
  color: #0958d9;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .main-content {
    padding: 1.5rem 1rem;
  }
  
  .main-title {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .bg-icon {
    font-size: 1.5rem;
  }
  
  .bg-icon.cloud {
    font-size: 2rem;
  }
  
  .bg-icon.truck {
    font-size: 1.8rem;
  }
}

/* 覆盖 antd-mobile 默认样式 */
:global(.adm-input) {
  --font-size: 1rem;
  --color: #000000;
  --placeholder-color: #999999;
  --border-bottom: 1px solid #e5e5e5;
  --border-bottom-hover: 1px solid #1677ff;
  --border-bottom-focus: 1px solid #1677ff;
}

:global(.adm-button) {
  --border-radius: 0.5rem;
  --font-size: 1rem;
  --height: 3rem;
}

:global(.adm-checkbox) {
  --icon-size: 1rem;
  --icon-color: #1677ff;
  --checked-color: #1677ff;
}

/* 测试账号提示 */
.test-account {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  border: 1px dashed rgba(102, 126, 234, 0.3);
}

.test-account p {
  margin: 0;
  font-size: 0.8rem;
  color: #667eea;
  font-weight: 500;
}
